package cn.edu.njnu.opengmpback.Modeling.dao;

import cn.edu.njnu.opengmpback.Modeling.entity.LogicMaterial;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface LogicMaterialDao  extends MongoRepository<LogicMaterial, String> {
    Page<LogicMaterial> findAllByNameLikeIgnoreCase(String name, Pageable pageable);
    Page<LogicMaterial> findAllByDescriptionLikeIgnoreCase(String searchText,Pageable pageable);
}
